<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>esapi.reference.python_log_factory</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="esapi-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="esapi-module.html">Package&nbsp;esapi</a> ::
        <a href="esapi.reference-module.html">Package&nbsp;reference</a> ::
        Module&nbsp;python_log_factory
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="esapi.reference.python_log_factory-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="esapi.reference.python_log_factory-module.html">Module esapi.reference.python_log_factory</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/python</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: utf-8 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">@license: OWASP Enterprise Security API (ESAPI)</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">     </tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">    This file is part of the Open Web Application Security Project (OWASP)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">    Enterprise Security API (ESAPI) project. For details, please see</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    U{http://www.owasp.org/index.php/ESAPI&lt;http://www.owasp.org/index.php/ESAPI&gt;}.</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">    The ESAPI is published by OWASP under the BSD license. You should read and </tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">    accept the LICENSE before you use, modify, and/or redistribute this software.</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">@summary: Reference implementation of the LogFactory and Logger interfaces.</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">@copyright: Copyright (c) 2009 - The OWASP Foundation</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">@author: Craig Younkins (craig.younkins@owasp.org)</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-comment"># Todo: </tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-comment"># Add HTTP Session info to log method</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-comment"># Change log method after Authenticator has been written</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">logging</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package esapi=esapi-module.html"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-0', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module esapi.core=esapi.core-module.html"><a title="esapi.core" class="py-name" href="#" onclick="return doclink('link-1', 'core', 'link-1');">core</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class esapi.core.ESAPI=esapi.core.ESAPI-class.html"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-2', 'ESAPI', 'link-2');">ESAPI</a></tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-3', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Class Method esapi.core.ESAPI.log_factory()=esapi.core.ESAPI-class.html#log_factory,Module esapi.log_factory=esapi.log_factory-module.html"><a title="esapi.core.ESAPI.log_factory
esapi.log_factory" class="py-name" href="#" onclick="return doclink('link-4', 'log_factory', 'link-4');">log_factory</a></tt> <tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Class esapi.log_factory.LogFactory=esapi.log_factory.LogFactory-class.html"><a title="esapi.log_factory.LogFactory" class="py-name" href="#" onclick="return doclink('link-5', 'LogFactory', 'link-5');">LogFactory</a></tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-6', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Class Method esapi.core.ESAPI.logger()=esapi.core.ESAPI-class.html#logger,Module esapi.logger=esapi.logger-module.html"><a title="esapi.core.ESAPI.logger
esapi.logger" class="py-name" href="#" onclick="return doclink('link-7', 'logger', 'link-7');">logger</a></tt> <tt class="py-keyword">import</tt> <tt id="link-8" class="py-name" targets="Class esapi.logger.Logger=esapi.logger.Logger-class.html"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-8', 'Logger', 'link-8');">Logger</a></tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-9" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-9', 'esapi', 'link-0');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Module esapi.translation=esapi.translation-module.html"><a title="esapi.translation" class="py-name" href="#" onclick="return doclink('link-10', 'translation', 'link-10');">translation</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">_</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"> </tt>
<a name="PythonLogFactory"></a><div id="PythonLogFactory-def"><a name="L30"></a><tt class="py-lineno"> 30</tt> <a class="py-toggle" href="#" id="PythonLogFactory-toggle" onclick="return toggle('PythonLogFactory');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory-class.html">PythonLogFactory</a><tt class="py-op">(</tt><tt class="py-base-class">LogFactory</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PythonLogFactory-expanded"><a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-docstring">    Reference implementation of the LogFactory and Logger interfaces. This </tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-docstring">    implementation uses the Python logging package, and marks each log message </tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-docstring">    with the currently logged in user and the word "SECURITY" for security </tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-docstring">    related events. </tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-docstring">    @author: Craig Younkins (craig.younkins@owasp.org)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt class="py-docstring">    @see: L{esapi.log_factory}</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt class="py-docstring">    @see: L{esapi.reference.python_log_factory.PythonLogFactory.PythonLogger}</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">     </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt id="link-11" class="py-name" targets="Variable esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#application_name,Variable esapi.reference.python_log_factory.PythonLogFactory.application_name=esapi.reference.python_log_factory.PythonLogFactory-class.html#application_name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-11', 'application_name', 'link-11');">application_name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt id="link-12" class="py-name" targets="Variable esapi.reference.python_log_factory.PythonLogFactory.loggers_map=esapi.reference.python_log_factory.PythonLogFactory-class.html#loggers_map"><a title="esapi.reference.python_log_factory.PythonLogFactory.loggers_map" class="py-name" href="#" onclick="return doclink('link-12', 'loggers_map', 'link-12');">loggers_map</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">     </tt>
<a name="PythonLogFactory.__init__"></a><div id="PythonLogFactory.__init__-def"><a name="L45"></a><tt class="py-lineno"> 45</tt> <a class="py-toggle" href="#" id="PythonLogFactory.__init__-toggle" onclick="return toggle('PythonLogFactory.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">application_name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PythonLogFactory.__init__-expanded"><a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt class="py-docstring">        Constructor for this implementation of the LogFactory interface.</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt class="py-docstring">        @param application_name: The name of the application this logger is </tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt class="py-docstring">            being constructed for.</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt id="link-13" class="py-name"><a title="esapi.log_factory.LogFactory" class="py-name" href="#" onclick="return doclink('link-13', 'LogFactory', 'link-5');">LogFactory</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method esapi.access_reference_map.AccessReferenceMap.__init__()=esapi.access_reference_map.AccessReferenceMap-class.html#__init__,Method esapi.authenticator.Authenticator.__init__()=esapi.authenticator.Authenticator-class.html#__init__,Method esapi.codecs.codec.Codec.__init__()=esapi.codecs.codec.Codec-class.html#__init__,Method esapi.codecs.css.CSSCodec.__init__()=esapi.codecs.css.CSSCodec-class.html#__init__,Method esapi.codecs.html_entity.HTMLEntityCodec.__init__()=esapi.codecs.html_entity.HTMLEntityCodec-class.html#__init__,Method esapi.codecs.javascript.JavascriptCodec.__init__()=esapi.codecs.javascript.JavascriptCodec-class.html#__init__,Method esapi.codecs.ldap.LDAPCodec.__init__()=esapi.codecs.ldap.LDAPCodec-class.html#__init__,Method esapi.codecs.ldap_dn.LDAPDNCodec.__init__()=esapi.codecs.ldap_dn.LDAPDNCodec-class.html#__init__,Method esapi.codecs.mysql.MySQLCodec.__init__()=esapi.codecs.mysql.MySQLCodec-class.html#__init__,Method esapi.codecs.oracle.OracleCodec.__init__()=esapi.codecs.oracle.OracleCodec-class.html#__init__,Method esapi.codecs.percent.PercentCodec.__init__()=esapi.codecs.percent.PercentCodec-class.html#__init__,Method esapi.codecs.push_back_string.PushbackString.__init__()=esapi.codecs.push_back_string.PushbackString-class.html#__init__,Method esapi.codecs.unix.UnixCodec.__init__()=esapi.codecs.unix.UnixCodec-class.html#__init__,Method esapi.codecs.vbscript.VBScriptCodec.__init__()=esapi.codecs.vbscript.VBScriptCodec-class.html#__init__,Method esapi.codecs.windows.WindowsCodec.__init__()=esapi.codecs.windows.WindowsCodec-class.html#__init__,Method esapi.encoder.Encoder.__init__()=esapi.encoder.Encoder-class.html#__init__,Method esapi.encryptor.Encryptor.__init__()=esapi.encryptor.Encryptor-class.html#__init__,Method esapi.exceptions.AccessControlException.__init__()=esapi.exceptions.AccessControlException-class.html#__init__,Method esapi.exceptions.AuthenticationAccountsException.__init__()=esapi.exceptions.AuthenticationAccountsException-class.html#__init__,Method esapi.exceptions.AuthenticationCredentialsException.__init__()=esapi.exceptions.AuthenticationCredentialsException-class.html#__init__,Method esapi.exceptions.AuthenticationException.__init__()=esapi.exceptions.AuthenticationException-class.html#__init__,Method esapi.exceptions.AuthenticationHostException.__init__()=esapi.exceptions.AuthenticationHostException-class.html#__init__,Method esapi.exceptions.AuthenticationLoginException.__init__()=esapi.exceptions.AuthenticationLoginException-class.html#__init__,Method esapi.exceptions.AvailabilityException.__init__()=esapi.exceptions.AvailabilityException-class.html#__init__,Method esapi.exceptions.CertificateException.__init__()=esapi.exceptions.CertificateException-class.html#__init__,Method esapi.exceptions.ConfigurationException.__init__()=esapi.exceptions.ConfigurationException-class.html#__init__,Method esapi.exceptions.EncodingException.__init__()=esapi.exceptions.EncodingException-class.html#__init__,Method esapi.exceptions.EncryptionException.__init__()=esapi.exceptions.EncryptionException-class.html#__init__,Method esapi.exceptions.EnterpriseSecurityException.__init__()=esapi.exceptions.EnterpriseSecurityException-class.html#__init__,Method esapi.exceptions.ExecutorException.__init__()=esapi.exceptions.ExecutorException-class.html#__init__,Method esapi.exceptions.IntegrityException.__init__()=esapi.exceptions.IntegrityException-class.html#__init__,Method esapi.exceptions.IntrusionException.__init__()=esapi.exceptions.IntrusionException-class.html#__init__,Method esapi.exceptions.ValidationAvailabilityException.__init__()=esapi.exceptions.ValidationAvailabilityException-class.html#__init__,Method esapi.exceptions.ValidationException.__init__()=esapi.exceptions.ValidationException-class.html#__init__,Method esapi.exceptions.ValidationUploadException.__init__()=esapi.exceptions.ValidationUploadException-class.html#__init__,Method esapi.executor.Executor.__init__()=esapi.executor.Executor-class.html#__init__,Method esapi.http_utilities.HTTPUtilities.__init__()=esapi.http_utilities.HTTPUtilities-class.html#__init__,Method esapi.ihttp.IHttpRequest.__init__()=esapi.ihttp.IHttpRequest-class.html#__init__,Method esapi.ihttp.IHttpResponse.__init__()=esapi.ihttp.IHttpResponse-class.html#__init__,Method esapi.ihttp.ISession.__init__()=esapi.ihttp.ISession-class.html#__init__,Method esapi.log_factory.LogFactory.__init__()=esapi.log_factory.LogFactory-class.html#__init__,Method esapi.logger.Logger.EventType.__init__()=esapi.logger.Logger.EventType-class.html#__init__,Method esapi.logger.Logger.__init__()=esapi.logger.Logger-class.html#__init__,Method esapi.randomizer.Randomizer.__init__()=esapi.randomizer.Randomizer-class.html#__init__,Method esapi.reference.default_encoder.DefaultEncoder.__init__()=esapi.reference.default_encoder.DefaultEncoder-class.html#__init__,Method esapi.reference.default_encryptor.DefaultEncryptor.__init__()=esapi.reference.default_encryptor.DefaultEncryptor-class.html#__init__,Method esapi.reference.default_executor.DefaultExecutor.__init__()=esapi.reference.default_executor.DefaultExecutor-class.html#__init__,Method esapi.reference.default_http_utilities.DefaultHTTPUtilities.__init__()=esapi.reference.default_http_utilities.DefaultHTTPUtilities-class.html#__init__,Method esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event.__init__()=esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event-class.html#__init__,Method esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.__init__()=esapi.reference.default_intrusion_detector.DefaultIntrusionDetector-class.html#__init__,Method esapi.reference.default_randomizer.DefaultRandomizer.__init__()=esapi.reference.default_randomizer.DefaultRandomizer-class.html#__init__,Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.__init__()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#__init__,Method esapi.reference.default_user.DefaultUser.__init__()=esapi.reference.default_user.DefaultUser-class.html#__init__,Method esapi.reference.default_validator.DefaultValidator.__init__()=esapi.reference.default_validator.DefaultValidator-class.html#__init__,Method esapi.reference.file_based_access_controller.FileBasedAccessController.__init__()=esapi.reference.file_based_access_controller.FileBasedAccessController-class.html#__init__,Method esapi.reference.file_based_access_controller.Rule.__init__()=esapi.reference.file_based_access_controller.Rule-class.html#__init__,Method esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.__init__()=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#__init__,Method esapi.reference.python_log_factory.PythonLogFactory.__init__()=esapi.reference.python_log_factory.PythonLogFactory-class.html#__init__,Method esapi.reference.random_access_reference_map.RandomAccessReferenceMap.__init__()=esapi.reference.random_access_reference_map.RandomAccessReferenceMap-class.html#__init__,Method esapi.reference.shelve_authenticator.ShelveAuthenticator.__init__()=esapi.reference.shelve_authenticator.ShelveAuthenticator-class.html#__init__,Method esapi.reference.user_credentials.UserCredentials.__init__()=esapi.reference.user_credentials.UserCredentials-class.html#__init__,Method esapi.reference.validation.base_validation_rule.BaseValidationRule.__init__()=esapi.reference.validation.base_validation_rule.BaseValidationRule-class.html#__init__,Method esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule.__init__()=esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule-class.html#__init__,Method esapi.reference.validation.date_validation_rule.DateValidationRule.__init__()=esapi.reference.validation.date_validation_rule.DateValidationRule-class.html#__init__,Method esapi.reference.validation.number_validation_rule.NumberValidationRule.__init__()=esapi.reference.validation.number_validation_rule.NumberValidationRule-class.html#__init__,Method esapi.reference.validation.string_validation_rule.StringValidationRule.__init__()=esapi.reference.validation.string_validation_rule.StringValidationRule-class.html#__init__,Method esapi.security_configuration.SecurityConfiguration.Threshold.__init__()=esapi.security_configuration.SecurityConfiguration.Threshold-class.html#__init__,Method esapi.security_configuration.SecurityConfiguration.__init__()=esapi.security_configuration.SecurityConfiguration-class.html#__init__,Method esapi.test.http.mock_http_request.MockHttpRequest.__init__()=esapi.test.http.mock_http_request.MockHttpRequest-class.html#__init__,Method esapi.test.http.mock_http_response.MockHttpResponse.__init__()=esapi.test.http.mock_http_response.MockHttpResponse-class.html#__init__,Method esapi.test.http.mock_session.MockSession.__init__()=esapi.test.http.mock_session.MockSession-class.html#__init__,Method esapi.test.test_access_controller.AccessControllerTest.__init__()=esapi.test.test_access_controller.AccessControllerTest-class.html#__init__,Method esapi.test.test_authenticator.ValidatorTest.__init__()=esapi.test.test_authenticator.ValidatorTest-class.html#__init__,Method esapi.test.test_encoder.EncoderTest.__init__()=esapi.test.test_encoder.EncoderTest-class.html#__init__,Method esapi.test.test_encryptor.EncryptorTest.__init__()=esapi.test.test_encryptor.EncryptorTest-class.html#__init__,Method esapi.test.test_executor.ExecutorTest.__init__()=esapi.test.test_executor.ExecutorTest-class.html#__init__,Method esapi.test.test_http_utilities.HTTPUtilitiesTest.__init__()=esapi.test.test_http_utilities.HTTPUtilitiesTest-class.html#__init__,Method esapi.test.test_intrusion_detector.IntrusionDetectorTest.__init__()=esapi.test.test_intrusion_detector.IntrusionDetectorTest-class.html#__init__,Method esapi.test.test_logger.LoggerTest.__init__()=esapi.test.test_logger.LoggerTest-class.html#__init__,Method esapi.test.test_random_access_map.ARMTest.__init__()=esapi.test.test_random_access_map.ARMTest-class.html#__init__,Method esapi.test.test_randomizer.RandomizerTest.__init__()=esapi.test.test_randomizer.RandomizerTest-class.html#__init__,Method esapi.test.test_user.UserTest.__init__()=esapi.test.test_user.UserTest-class.html#__init__,Method esapi.test.test_validator.ValidatorTest.__init__()=esapi.test.test_validator.ValidatorTest-class.html#__init__,Method esapi.user.AnonymousUser.__init__()=esapi.user.AnonymousUser-class.html#__init__,Method esapi.user.User.__init__()=esapi.user.User-class.html#__init__,Method esapi.validator.Validator.__init__()=esapi.validator.Validator-class.html#__init__"><a title="esapi.access_reference_map.AccessReferenceMap.__init__
esapi.authenticator.Authenticator.__init__
esapi.codecs.codec.Codec.__init__
esapi.codecs.css.CSSCodec.__init__
esapi.codecs.html_entity.HTMLEntityCodec.__init__
esapi.codecs.javascript.JavascriptCodec.__init__
esapi.codecs.ldap.LDAPCodec.__init__
esapi.codecs.ldap_dn.LDAPDNCodec.__init__
esapi.codecs.mysql.MySQLCodec.__init__
esapi.codecs.oracle.OracleCodec.__init__
esapi.codecs.percent.PercentCodec.__init__
esapi.codecs.push_back_string.PushbackString.__init__
esapi.codecs.unix.UnixCodec.__init__
esapi.codecs.vbscript.VBScriptCodec.__init__
esapi.codecs.windows.WindowsCodec.__init__
esapi.encoder.Encoder.__init__
esapi.encryptor.Encryptor.__init__
esapi.exceptions.AccessControlException.__init__
esapi.exceptions.AuthenticationAccountsException.__init__
esapi.exceptions.AuthenticationCredentialsException.__init__
esapi.exceptions.AuthenticationException.__init__
esapi.exceptions.AuthenticationHostException.__init__
esapi.exceptions.AuthenticationLoginException.__init__
esapi.exceptions.AvailabilityException.__init__
esapi.exceptions.CertificateException.__init__
esapi.exceptions.ConfigurationException.__init__
esapi.exceptions.EncodingException.__init__
esapi.exceptions.EncryptionException.__init__
esapi.exceptions.EnterpriseSecurityException.__init__
esapi.exceptions.ExecutorException.__init__
esapi.exceptions.IntegrityException.__init__
esapi.exceptions.IntrusionException.__init__
esapi.exceptions.ValidationAvailabilityException.__init__
esapi.exceptions.ValidationException.__init__
esapi.exceptions.ValidationUploadException.__init__
esapi.executor.Executor.__init__
esapi.http_utilities.HTTPUtilities.__init__
esapi.ihttp.IHttpRequest.__init__
esapi.ihttp.IHttpResponse.__init__
esapi.ihttp.ISession.__init__
esapi.log_factory.LogFactory.__init__
esapi.logger.Logger.EventType.__init__
esapi.logger.Logger.__init__
esapi.randomizer.Randomizer.__init__
esapi.reference.default_encoder.DefaultEncoder.__init__
esapi.reference.default_encryptor.DefaultEncryptor.__init__
esapi.reference.default_executor.DefaultExecutor.__init__
esapi.reference.default_http_utilities.DefaultHTTPUtilities.__init__
esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event.__init__
esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.__init__
esapi.reference.default_randomizer.DefaultRandomizer.__init__
esapi.reference.default_security_configuration.DefaultSecurityConfiguration.__init__
esapi.reference.default_user.DefaultUser.__init__
esapi.reference.default_validator.DefaultValidator.__init__
esapi.reference.file_based_access_controller.FileBasedAccessController.__init__
esapi.reference.file_based_access_controller.Rule.__init__
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.__init__
esapi.reference.python_log_factory.PythonLogFactory.__init__
esapi.reference.random_access_reference_map.RandomAccessReferenceMap.__init__
esapi.reference.shelve_authenticator.ShelveAuthenticator.__init__
esapi.reference.user_credentials.UserCredentials.__init__
esapi.reference.validation.base_validation_rule.BaseValidationRule.__init__
esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule.__init__
esapi.reference.validation.date_validation_rule.DateValidationRule.__init__
esapi.reference.validation.number_validation_rule.NumberValidationRule.__init__
esapi.reference.validation.string_validation_rule.StringValidationRule.__init__
esapi.security_configuration.SecurityConfiguration.Threshold.__init__
esapi.security_configuration.SecurityConfiguration.__init__
esapi.test.http.mock_http_request.MockHttpRequest.__init__
esapi.test.http.mock_http_response.MockHttpResponse.__init__
esapi.test.http.mock_session.MockSession.__init__
esapi.test.test_access_controller.AccessControllerTest.__init__
esapi.test.test_authenticator.ValidatorTest.__init__
esapi.test.test_encoder.EncoderTest.__init__
esapi.test.test_encryptor.EncryptorTest.__init__
esapi.test.test_executor.ExecutorTest.__init__
esapi.test.test_http_utilities.HTTPUtilitiesTest.__init__
esapi.test.test_intrusion_detector.IntrusionDetectorTest.__init__
esapi.test.test_logger.LoggerTest.__init__
esapi.test.test_random_access_map.ARMTest.__init__
esapi.test.test_randomizer.RandomizerTest.__init__
esapi.test.test_user.UserTest.__init__
esapi.test.test_validator.ValidatorTest.__init__
esapi.user.AnonymousUser.__init__
esapi.user.User.__init__
esapi.validator.Validator.__init__" class="py-name" href="#" onclick="return doclink('link-14', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-15', 'application_name', 'link-11');">application_name</a></tt> <tt class="py-op">=</tt> <tt id="link-16" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-16', 'application_name', 'link-11');">application_name</a></tt> </tt>
</div><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.set_application_name"></a><div id="PythonLogFactory.set_application_name-def"><a name="L55"></a><tt class="py-lineno"> 55</tt> <a class="py-toggle" href="#" id="PythonLogFactory.set_application_name-toggle" onclick="return toggle('PythonLogFactory.set_application_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory-class.html#set_application_name">set_application_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">application_name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.set_application_name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PythonLogFactory.set_application_name-expanded"><a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-17', 'application_name', 'link-11');">application_name</a></tt> <tt class="py-op">=</tt> <tt id="link-18" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-18', 'application_name', 'link-11');">application_name</a></tt> </tt>
</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.get_logger"></a><div id="PythonLogFactory.get_logger-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="PythonLogFactory.get_logger-toggle" onclick="return toggle('PythonLogFactory.get_logger');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory-class.html#get_logger">get_logger</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.get_logger-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PythonLogFactory.get_logger-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.loggers_map" class="py-name" href="#" onclick="return doclink('link-19', 'loggers_map', 'link-12');">loggers_map</a></tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.loggers_map" class="py-name" href="#" onclick="return doclink('link-20', 'loggers_map', 'link-12');">loggers_map</a></tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Class esapi.reference.python_log_factory.PythonLogFactory.PythonLogger=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger" class="py-name" href="#" onclick="return doclink('link-21', 'PythonLogger', 'link-21');">PythonLogger</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-22', 'application_name', 'link-11');">application_name</a></tt><tt class="py-op">,</tt> <tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">             </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.loggers_map" class="py-name" href="#" onclick="return doclink('link-23', 'loggers_map', 'link-12');">loggers_map</a></tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
</div><a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">     </tt>
<a name="PythonLogFactory.PythonLogger"></a><div id="PythonLogFactory.PythonLogger-def"><a name="L64"></a><tt class="py-lineno"> 64</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger-toggle" onclick="return toggle('PythonLogFactory.PythonLogger');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html">PythonLogger</a><tt class="py-op">(</tt><tt class="py-base-class">Logger</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PythonLogFactory.PythonLogger-expanded"><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt class="py-docstring">        Reference implementation of the Logger interface.</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"><tt class="py-docstring">        It implements most of the recommendations defined in the Logger </tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt class="py-docstring">        interface description. It does not filter out any sensitive data </tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt class="py-docstring">        specific to the current application or organization, such as credit </tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"><tt class="py-docstring">        cards, social security numbers, etc.</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt class="py-docstring">        @author: Craig Younkins (craig.younkins@owasp.org)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"><tt class="py-docstring">        @since: June 1, 2009</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"><tt class="py-docstring">        @see: L{esapi.LogFactory}</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">                </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-comment"># The logging object used by this class to log everything.</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt id="link-24" class="py-name" targets="Variable esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#pyLogger"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-24', 'pyLogger', 'link-24');">pyLogger</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">         </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-comment"># The application name using this log.</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt id="link-25" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-25', 'application_name', 'link-11');">application_name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">         </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt class="py-comment"># The module name using this log.</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt id="link-26" class="py-name" targets="Variable esapi.reference.default_encryptor.module_name=esapi.reference.default_encryptor-module.html#module_name,Variable esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.module_name=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#module_name"><a title="esapi.reference.default_encryptor.module_name
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.module_name" class="py-name" href="#" onclick="return doclink('link-26', 'module_name', 'link-26');">module_name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.PythonLogger.__init__"></a><div id="PythonLogFactory.PythonLogger.__init__-def"><a name="L87"></a><tt class="py-lineno"> 87</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.__init__-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">application_name</tt><tt class="py-op">,</tt> <tt class="py-param">module_name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.__init__-expanded"><a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">            <tt class="py-docstring">"""</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt class="py-docstring">            Public constructor should only ever be called via the appropriate </tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"><tt class="py-docstring">            LogFactory</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt class="py-docstring">            </tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt class="py-docstring">            @param application_name: the application name</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt class="py-docstring">            @param module_name: the module name</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt class="py-docstring">            """</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">            <tt id="link-27" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-27', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="esapi.access_reference_map.AccessReferenceMap.__init__
esapi.authenticator.Authenticator.__init__
esapi.codecs.codec.Codec.__init__
esapi.codecs.css.CSSCodec.__init__
esapi.codecs.html_entity.HTMLEntityCodec.__init__
esapi.codecs.javascript.JavascriptCodec.__init__
esapi.codecs.ldap.LDAPCodec.__init__
esapi.codecs.ldap_dn.LDAPDNCodec.__init__
esapi.codecs.mysql.MySQLCodec.__init__
esapi.codecs.oracle.OracleCodec.__init__
esapi.codecs.percent.PercentCodec.__init__
esapi.codecs.push_back_string.PushbackString.__init__
esapi.codecs.unix.UnixCodec.__init__
esapi.codecs.vbscript.VBScriptCodec.__init__
esapi.codecs.windows.WindowsCodec.__init__
esapi.encoder.Encoder.__init__
esapi.encryptor.Encryptor.__init__
esapi.exceptions.AccessControlException.__init__
esapi.exceptions.AuthenticationAccountsException.__init__
esapi.exceptions.AuthenticationCredentialsException.__init__
esapi.exceptions.AuthenticationException.__init__
esapi.exceptions.AuthenticationHostException.__init__
esapi.exceptions.AuthenticationLoginException.__init__
esapi.exceptions.AvailabilityException.__init__
esapi.exceptions.CertificateException.__init__
esapi.exceptions.ConfigurationException.__init__
esapi.exceptions.EncodingException.__init__
esapi.exceptions.EncryptionException.__init__
esapi.exceptions.EnterpriseSecurityException.__init__
esapi.exceptions.ExecutorException.__init__
esapi.exceptions.IntegrityException.__init__
esapi.exceptions.IntrusionException.__init__
esapi.exceptions.ValidationAvailabilityException.__init__
esapi.exceptions.ValidationException.__init__
esapi.exceptions.ValidationUploadException.__init__
esapi.executor.Executor.__init__
esapi.http_utilities.HTTPUtilities.__init__
esapi.ihttp.IHttpRequest.__init__
esapi.ihttp.IHttpResponse.__init__
esapi.ihttp.ISession.__init__
esapi.log_factory.LogFactory.__init__
esapi.logger.Logger.EventType.__init__
esapi.logger.Logger.__init__
esapi.randomizer.Randomizer.__init__
esapi.reference.default_encoder.DefaultEncoder.__init__
esapi.reference.default_encryptor.DefaultEncryptor.__init__
esapi.reference.default_executor.DefaultExecutor.__init__
esapi.reference.default_http_utilities.DefaultHTTPUtilities.__init__
esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.Event.__init__
esapi.reference.default_intrusion_detector.DefaultIntrusionDetector.__init__
esapi.reference.default_randomizer.DefaultRandomizer.__init__
esapi.reference.default_security_configuration.DefaultSecurityConfiguration.__init__
esapi.reference.default_user.DefaultUser.__init__
esapi.reference.default_validator.DefaultValidator.__init__
esapi.reference.file_based_access_controller.FileBasedAccessController.__init__
esapi.reference.file_based_access_controller.Rule.__init__
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.__init__
esapi.reference.python_log_factory.PythonLogFactory.__init__
esapi.reference.random_access_reference_map.RandomAccessReferenceMap.__init__
esapi.reference.shelve_authenticator.ShelveAuthenticator.__init__
esapi.reference.user_credentials.UserCredentials.__init__
esapi.reference.validation.base_validation_rule.BaseValidationRule.__init__
esapi.reference.validation.credit_card_validation_rule.CreditCardValidationRule.__init__
esapi.reference.validation.date_validation_rule.DateValidationRule.__init__
esapi.reference.validation.number_validation_rule.NumberValidationRule.__init__
esapi.reference.validation.string_validation_rule.StringValidationRule.__init__
esapi.security_configuration.SecurityConfiguration.Threshold.__init__
esapi.security_configuration.SecurityConfiguration.__init__
esapi.test.http.mock_http_request.MockHttpRequest.__init__
esapi.test.http.mock_http_response.MockHttpResponse.__init__
esapi.test.http.mock_session.MockSession.__init__
esapi.test.test_access_controller.AccessControllerTest.__init__
esapi.test.test_authenticator.ValidatorTest.__init__
esapi.test.test_encoder.EncoderTest.__init__
esapi.test.test_encryptor.EncryptorTest.__init__
esapi.test.test_executor.ExecutorTest.__init__
esapi.test.test_http_utilities.HTTPUtilitiesTest.__init__
esapi.test.test_intrusion_detector.IntrusionDetectorTest.__init__
esapi.test.test_logger.LoggerTest.__init__
esapi.test.test_random_access_map.ARMTest.__init__
esapi.test.test_randomizer.RandomizerTest.__init__
esapi.test.test_user.UserTest.__init__
esapi.test.test_validator.ValidatorTest.__init__
esapi.user.AnonymousUser.__init__
esapi.user.User.__init__
esapi.validator.Validator.__init__" class="py-name" href="#" onclick="return doclink('link-28', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">             </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-29', 'application_name', 'link-11');">application_name</a></tt> <tt class="py-op">=</tt> <tt id="link-30" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-30', 'application_name', 'link-11');">application_name</a></tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="esapi.reference.default_encryptor.module_name
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.module_name" class="py-name" href="#" onclick="return doclink('link-31', 'module_name', 'link-26');">module_name</a></tt> <tt class="py-op">=</tt> <tt id="link-32" class="py-name"><a title="esapi.reference.default_encryptor.module_name
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.module_name" class="py-name" href="#" onclick="return doclink('link-32', 'module_name', 'link-26');">module_name</a></tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">             </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">            <tt class="py-comment"># Set the log levels. These are straight from logger.py</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-33" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-33', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Variable esapi.logger.Logger.OFF=esapi.logger.Logger-class.html#OFF"><a title="esapi.logger.Logger.OFF" class="py-name" href="#" onclick="return doclink('link-34', 'OFF', 'link-34');">OFF</a></tt><tt class="py-op">,</tt> <tt class="py-string">"OFF"</tt><tt class="py-op">)</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-35" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-35', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Variable esapi.logger.Logger.FATAL=esapi.logger.Logger-class.html#FATAL"><a title="esapi.logger.Logger.FATAL" class="py-name" href="#" onclick="return doclink('link-36', 'FATAL', 'link-36');">FATAL</a></tt><tt class="py-op">,</tt> <tt class="py-string">"FATAL"</tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-37', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Variable esapi.logger.Logger.ERROR=esapi.logger.Logger-class.html#ERROR"><a title="esapi.logger.Logger.ERROR" class="py-name" href="#" onclick="return doclink('link-38', 'ERROR', 'link-38');">ERROR</a></tt><tt class="py-op">,</tt> <tt class="py-string">"ERROR"</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-39" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-39', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Variable esapi.logger.Logger.WARNING=esapi.logger.Logger-class.html#WARNING"><a title="esapi.logger.Logger.WARNING" class="py-name" href="#" onclick="return doclink('link-40', 'WARNING', 'link-40');">WARNING</a></tt><tt class="py-op">,</tt> <tt class="py-string">"WARNING"</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-41" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-41', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-42" class="py-name" targets="Variable esapi.logger.Logger.INFO=esapi.logger.Logger-class.html#INFO"><a title="esapi.logger.Logger.INFO" class="py-name" href="#" onclick="return doclink('link-42', 'INFO', 'link-42');">INFO</a></tt><tt class="py-op">,</tt> <tt class="py-string">"INFO"</tt><tt class="py-op">)</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-43" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-43', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Variable esapi.logger.Logger.DEBUG=esapi.logger.Logger-class.html#DEBUG"><a title="esapi.logger.Logger.DEBUG" class="py-name" href="#" onclick="return doclink('link-44', 'DEBUG', 'link-44');">DEBUG</a></tt><tt class="py-op">,</tt> <tt class="py-string">"DEBUG"</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-45', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-46" class="py-name" targets="Variable esapi.logger.Logger.TRACE=esapi.logger.Logger-class.html#TRACE"><a title="esapi.logger.Logger.TRACE" class="py-name" href="#" onclick="return doclink('link-46', 'TRACE', 'link-46');">TRACE</a></tt><tt class="py-op">,</tt> <tt class="py-string">"TRACE"</tt><tt class="py-op">)</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">addLevelName</tt><tt class="py-op">(</tt><tt id="link-47" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-47', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-48" class="py-name" targets="Variable esapi.logger.Logger.ALL=esapi.logger.Logger-class.html#ALL"><a title="esapi.logger.Logger.ALL" class="py-name" href="#" onclick="return doclink('link-48', 'ALL', 'link-48');">ALL</a></tt><tt class="py-op">,</tt> <tt class="py-string">"ALL"</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">             </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">            <tt class="py-comment"># Make our logger</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-49', 'pyLogger', 'link-24');">pyLogger</a></tt> <tt class="py-op">=</tt> <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">getLogger</tt><tt class="py-op">(</tt><tt id="link-50" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.application_name
esapi.reference.python_log_factory.PythonLogFactory.application_name" class="py-name" href="#" onclick="return doclink('link-50', 'application_name', 'link-11');">application_name</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"."</tt> <tt class="py-op">+</tt> <tt id="link-51" class="py-name"><a title="esapi.reference.default_encryptor.module_name
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.module_name" class="py-name" href="#" onclick="return doclink('link-51', 'module_name', 'link-26');">module_name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">             </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">            <tt class="py-comment"># create console handler and set level to debug</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">            <tt class="py-name">console_handler</tt> <tt class="py-op">=</tt> <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">StreamHandler</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">            <tt class="py-name">console_handler</tt><tt class="py-op">.</tt><tt class="py-name">setLevel</tt><tt class="py-op">(</tt><tt id="link-52" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-52', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="esapi.logger.Logger.ALL" class="py-name" href="#" onclick="return doclink('link-53', 'ALL', 'link-48');">ALL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">            <tt class="py-comment"># create formatter</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">            <tt class="py-name">formatter</tt> <tt class="py-op">=</tt> <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">Formatter</tt><tt class="py-op">(</tt><tt class="py-string">"%(levelname)s %(name)s - %(eventType)s - %(user)s@%(hostname)s:%(sessionID)s -- %(message)s"</tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">            <tt class="py-comment"># add formatter to console_handler</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">            <tt class="py-name">console_handler</tt><tt class="py-op">.</tt><tt class="py-name">setFormatter</tt><tt class="py-op">(</tt><tt class="py-name">formatter</tt><tt class="py-op">)</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">            <tt class="py-comment"># add console_handler to logger</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-54', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">addHandler</tt><tt class="py-op">(</tt><tt class="py-name">console_handler</tt><tt class="py-op">)</tt> </tt>
</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"> </tt>
<a name="PythonLogFactory.PythonLogger.set_level"></a><div id="PythonLogFactory.PythonLogger.set_level-def"><a name="L123"></a><tt class="py-lineno">123</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.set_level-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.set_level');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#set_level">set_level</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">level</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.set_level-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.set_level-expanded"><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-docstring">"""</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"><tt class="py-docstring">            Note: In this implementation, this change is not persistent,</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt class="py-docstring">            meaning that if the application is restarted, the log level will </tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt class="py-docstring">            revert to the level defined in the ESAPI SecurityConfiguration </tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"><tt class="py-docstring">            properties file.</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-docstring">            """</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-55', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">setLevel</tt><tt class="py-op">(</tt><tt class="py-name">level</tt><tt class="py-op">)</tt> </tt>
</div><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.trace"></a><div id="PythonLogFactory.PythonLogger.trace-def"><a name="L132"></a><tt class="py-lineno">132</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.trace-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.trace');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#trace">trace</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.trace-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.trace-expanded"><a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name" targets="Class Method esapi.core.ESAPI.log()=esapi.core.ESAPI-class.html#log,Method esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log()=esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#log"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-56', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt id="link-57" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-57', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="esapi.logger.Logger.TRACE" class="py-name" href="#" onclick="return doclink('link-58', 'TRACE', 'link-46');">TRACE</a></tt><tt class="py-op">,</tt> <tt class="py-name">event_type</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">)</tt> </tt>
</div><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.debug"></a><div id="PythonLogFactory.PythonLogger.debug-def"><a name="L135"></a><tt class="py-lineno">135</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.debug-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.debug');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#debug">debug</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.debug-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.debug-expanded"><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-59', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt id="link-60" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-60', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="esapi.logger.Logger.DEBUG" class="py-name" href="#" onclick="return doclink('link-61', 'DEBUG', 'link-44');">DEBUG</a></tt><tt class="py-op">,</tt> <tt class="py-name">event_type</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">)</tt> </tt>
</div><a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.info"></a><div id="PythonLogFactory.PythonLogger.info-def"><a name="L138"></a><tt class="py-lineno">138</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.info-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.info');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#info">info</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.info-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.info-expanded"><a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-62" class="py-name"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-62', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt id="link-63" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-63', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="esapi.logger.Logger.INFO" class="py-name" href="#" onclick="return doclink('link-64', 'INFO', 'link-42');">INFO</a></tt><tt class="py-op">,</tt> <tt class="py-name">event_type</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">)</tt> </tt>
</div><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.warning"></a><div id="PythonLogFactory.PythonLogger.warning-def"><a name="L141"></a><tt class="py-lineno">141</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.warning-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.warning');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#warning">warning</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.warning-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.warning-expanded"><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-65', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-66', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="esapi.logger.Logger.WARNING" class="py-name" href="#" onclick="return doclink('link-67', 'WARNING', 'link-40');">WARNING</a></tt><tt class="py-op">,</tt> <tt class="py-name">event_type</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">)</tt> </tt>
</div><a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.error"></a><div id="PythonLogFactory.PythonLogger.error-def"><a name="L144"></a><tt class="py-lineno">144</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.error-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.error');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#error">error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.error-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.error-expanded"><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-68', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt id="link-69" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-69', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="esapi.logger.Logger.ERROR" class="py-name" href="#" onclick="return doclink('link-70', 'ERROR', 'link-38');">ERROR</a></tt><tt class="py-op">,</tt> <tt class="py-name">event_type</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">)</tt> </tt>
</div><a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.fatal"></a><div id="PythonLogFactory.PythonLogger.fatal-def"><a name="L147"></a><tt class="py-lineno">147</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.fatal-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.fatal');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#fatal">fatal</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.fatal-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.fatal-expanded"><a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-71', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt id="link-72" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-72', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="esapi.logger.Logger.FATAL" class="py-name" href="#" onclick="return doclink('link-73', 'FATAL', 'link-36');">FATAL</a></tt><tt class="py-op">,</tt> <tt class="py-name">event_type</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">)</tt> </tt>
</div><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">             </tt>
<a name="PythonLogFactory.PythonLogger.log"></a><div id="PythonLogFactory.PythonLogger.log-def"><a name="L150"></a><tt class="py-lineno">150</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.log-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.log');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#log">log</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">level</tt><tt class="py-op">,</tt> <tt class="py-param">event_type</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">,</tt> <tt class="py-param">exception</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.log-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.log-expanded"><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">            <tt class="py-docstring">"""</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"><tt class="py-docstring">            Log the message after optionally encoding any special characters </tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line"><tt class="py-docstring">            that might be dangerous when viewed by an HTML based log viewer. </tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"><tt class="py-docstring">            Also encode any carriage returns and line feeds to prevent log</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-docstring">            injection attacks. This logs all the supplied parameters plus the </tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"><tt class="py-docstring">            user ID, user's source IP, a logging specific session ID, and the </tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"><tt class="py-docstring">            current date/time.</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"><tt class="py-docstring">            </tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"><tt class="py-docstring">            It will only log the message if the current logging level is </tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt class="py-docstring">            enabled, otherwise it will discard the message.</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"><tt class="py-docstring">            </tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"><tt class="py-docstring">            @param level: the severity level of the security event</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"><tt class="py-docstring">            @param event_type: the event_type of the event </tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"><tt class="py-docstring">                (SECURITY, FUNCTIONALITY, etc.)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"><tt class="py-docstring">            @param message: the message</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"><tt class="py-docstring">            @param exception: an exception</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"><tt class="py-docstring">            """</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">            <tt class="py-comment"># Before we waste all kinds of time preparing this event for the </tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">            <tt class="py-comment"># log, let check to see if its loggable</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-74" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-74', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt class="py-name">level</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">             </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">            <tt id="link-75" class="py-name" targets="Class Method esapi.core.ESAPI.user()=esapi.core.ESAPI-class.html#user,Module esapi.user=esapi.user-module.html"><a title="esapi.core.ESAPI.user
esapi.user" class="py-name" href="#" onclick="return doclink('link-75', 'user', 'link-75');">user</a></tt> <tt class="py-op">=</tt> <tt id="link-76" class="py-name"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-76', 'ESAPI', 'link-2');">ESAPI</a></tt><tt class="py-op">.</tt><tt id="link-77" class="py-name" targets="Module esapi.authenticator=esapi.authenticator-module.html,Class Method esapi.core.ESAPI.authenticator()=esapi.core.ESAPI-class.html#authenticator"><a title="esapi.authenticator
esapi.core.ESAPI.authenticator" class="py-name" href="#" onclick="return doclink('link-77', 'authenticator', 'link-77');">authenticator</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">current_user</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">             </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">            <tt class="py-comment"># create a random session number for the user to represent the </tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">            <tt class="py-comment"># user's 'session', if it doesn't exist already</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">            <tt class="py-name">sid</tt> <tt class="py-op">=</tt> <tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"unknown"</tt><tt class="py-op">)</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">            <tt class="py-name">request</tt> <tt class="py-op">=</tt> <tt id="link-78" class="py-name"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-78', 'ESAPI', 'link-2');">ESAPI</a></tt><tt class="py-op">.</tt><tt id="link-79" class="py-name" targets="Class Method esapi.core.ESAPI.http_utilities()=esapi.core.ESAPI-class.html#http_utilities,Module esapi.http_utilities=esapi.http_utilities-module.html"><a title="esapi.core.ESAPI.http_utilities
esapi.http_utilities" class="py-name" href="#" onclick="return doclink('link-79', 'http_utilities', 'link-79');">http_utilities</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Class Method esapi.core.ESAPI.current_request()=esapi.core.ESAPI-class.html#current_request"><a title="esapi.core.ESAPI.current_request" class="py-name" href="#" onclick="return doclink('link-80', 'current_request', 'link-80');">current_request</a></tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">request</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">                <tt class="py-name">session</tt> <tt class="py-op">=</tt> <tt class="py-name">request</tt><tt class="py-op">.</tt><tt class="py-name">session</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">session</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">                    <tt class="py-name">sid</tt> <tt class="py-op">=</tt> <tt class="py-name">session</tt><tt class="py-op">.</tt><tt id="link-81" class="py-name" targets="Method esapi.ihttp.ISession.get()=esapi.ihttp.ISession-class.html#get,Method esapi.test.http.mock_session.MockSession.get()=esapi.test.http.mock_session.MockSession-class.html#get"><a title="esapi.ihttp.ISession.get
esapi.test.http.mock_session.MockSession.get" class="py-name" href="#" onclick="return doclink('link-81', 'get', 'link-81');">get</a></tt><tt class="py-op">(</tt><tt class="py-string">'ESAPI_SESSION'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">                     </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">                    <tt class="py-comment"># if there is no session id for the user yet, create one</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">                    <tt class="py-comment"># and store it in the user's session</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">sid</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">                        <tt class="py-name">sid</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-82" class="py-name"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-82', 'ESAPI', 'link-2');">ESAPI</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name" targets="Class Method esapi.core.ESAPI.randomizer()=esapi.core.ESAPI-class.html#randomizer,Module esapi.randomizer=esapi.randomizer-module.html"><a title="esapi.core.ESAPI.randomizer
esapi.randomizer" class="py-name" href="#" onclick="return doclink('link-83', 'randomizer', 'link-83');">randomizer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name" targets="Method esapi.randomizer.Randomizer.get_random_integer()=esapi.randomizer.Randomizer-class.html#get_random_integer,Method esapi.reference.default_randomizer.DefaultRandomizer.get_random_integer()=esapi.reference.default_randomizer.DefaultRandomizer-class.html#get_random_integer"><a title="esapi.randomizer.Randomizer.get_random_integer
esapi.reference.default_randomizer.DefaultRandomizer.get_random_integer" class="py-name" href="#" onclick="return doclink('link-84', 'get_random_integer', 'link-84');">get_random_integer</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-number">1000000</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">                        <tt class="py-name">session</tt><tt class="py-op">[</tt><tt class="py-string">'ESAPI_SESSION'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">sid</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">             </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">            <tt class="py-comment"># ensure there's something to log</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">message</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">                <tt class="py-name">message</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">                 </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">            <tt class="py-comment"># ensure no CRLF injection into logs for forging records</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">            <tt class="py-name">clean</tt> <tt class="py-op">=</tt> <tt class="py-name">message</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">,</tt> <tt class="py-string">'_'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r'</tt><tt class="py-op">,</tt> <tt class="py-string">'_'</tt><tt class="py-op">)</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-85" class="py-name"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-85', 'ESAPI', 'link-2');">ESAPI</a></tt><tt class="py-op">.</tt><tt id="link-86" class="py-name" targets="Class Method esapi.core.ESAPI.security_configuration()=esapi.core.ESAPI-class.html#security_configuration,Module esapi.security_configuration=esapi.security_configuration-module.html"><a title="esapi.core.ESAPI.security_configuration
esapi.security_configuration" class="py-name" href="#" onclick="return doclink('link-86', 'security_configuration', 'link-86');">security_configuration</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name" targets="Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_log_encoding_required()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_log_encoding_required,Method esapi.security_configuration.SecurityConfiguration.get_log_encoding_required()=esapi.security_configuration.SecurityConfiguration-class.html#get_log_encoding_required"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_log_encoding_required
esapi.security_configuration.SecurityConfiguration.get_log_encoding_required" class="py-name" href="#" onclick="return doclink('link-87', 'get_log_encoding_required', 'link-87');">get_log_encoding_required</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">                <tt class="py-name">clean</tt> <tt class="py-op">=</tt> <tt id="link-88" class="py-name"><a title="esapi.core.ESAPI" class="py-name" href="#" onclick="return doclink('link-88', 'ESAPI', 'link-2');">ESAPI</a></tt><tt class="py-op">.</tt><tt id="link-89" class="py-name" targets="Class Method esapi.core.ESAPI.encoder()=esapi.core.ESAPI-class.html#encoder,Module esapi.encoder=esapi.encoder-module.html"><a title="esapi.core.ESAPI.encoder
esapi.encoder" class="py-name" href="#" onclick="return doclink('link-89', 'encoder', 'link-89');">encoder</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name" targets="Method esapi.encoder.Encoder.encode_for_html()=esapi.encoder.Encoder-class.html#encode_for_html,Method esapi.reference.default_encoder.DefaultEncoder.encode_for_html()=esapi.reference.default_encoder.DefaultEncoder-class.html#encode_for_html"><a title="esapi.encoder.Encoder.encode_for_html
esapi.reference.default_encoder.DefaultEncoder.encode_for_html" class="py-name" href="#" onclick="return doclink('link-90', 'encode_for_html', 'link-90');">encode_for_html</a></tt><tt class="py-op">(</tt><tt class="py-name">message</tt><tt class="py-op">)</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">message</tt> <tt class="py-op">!=</tt> <tt class="py-name">clean</tt><tt class="py-op">:</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">                    <tt class="py-name">clean</tt> <tt class="py-op">+=</tt> <tt class="py-string">" (Encoded)"</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">                                           </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">            <tt class="py-name">extra</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">                 <tt class="py-string">'eventType'</tt> <tt class="py-op">:</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">event_type</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">                 <tt class="py-string">'eventSuccess'</tt> <tt class="py-op">:</tt> <tt class="py-op">[</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"SUCCESS"</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">_</tt><tt class="py-op">(</tt><tt class="py-string">"FAILURE"</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-name">event_type</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name" targets="Method esapi.logger.Logger.EventType.is_success()=esapi.logger.Logger.EventType-class.html#is_success"><a title="esapi.logger.Logger.EventType.is_success" class="py-name" href="#" onclick="return doclink('link-91', 'is_success', 'link-91');">is_success</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">                 <tt class="py-string">'user'</tt> <tt class="py-op">:</tt> <tt id="link-92" class="py-name"><a title="esapi.core.ESAPI.user
esapi.user" class="py-name" href="#" onclick="return doclink('link-92', 'user', 'link-75');">user</a></tt><tt class="py-op">.</tt><tt id="link-93" class="py-name" targets="Variable esapi.reference.default_user.DefaultUser.account_name=esapi.reference.default_user.DefaultUser-class.html#account_name,Variable esapi.user.AnonymousUser.account_name=esapi.user.AnonymousUser-class.html#account_name,Variable esapi.user.User.account_name=esapi.user.User-class.html#account_name"><a title="esapi.reference.default_user.DefaultUser.account_name
esapi.user.AnonymousUser.account_name
esapi.user.User.account_name" class="py-name" href="#" onclick="return doclink('link-93', 'account_name', 'link-93');">account_name</a></tt><tt class="py-op">,</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">                 <tt class="py-string">'hostname'</tt> <tt class="py-op">:</tt> <tt id="link-94" class="py-name"><a title="esapi.core.ESAPI.user
esapi.user" class="py-name" href="#" onclick="return doclink('link-94', 'user', 'link-75');">user</a></tt><tt class="py-op">.</tt><tt id="link-95" class="py-name" targets="Variable esapi.reference.default_user.DefaultUser.last_host_address=esapi.reference.default_user.DefaultUser-class.html#last_host_address,Variable esapi.user.AnonymousUser.last_host_address=esapi.user.AnonymousUser-class.html#last_host_address,Variable esapi.user.User.last_host_address=esapi.user.User-class.html#last_host_address"><a title="esapi.reference.default_user.DefaultUser.last_host_address
esapi.user.AnonymousUser.last_host_address
esapi.user.User.last_host_address" class="py-name" href="#" onclick="return doclink('link-95', 'last_host_address', 'link-95');">last_host_address</a></tt><tt class="py-op">,</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">                 <tt class="py-string">'sessionID'</tt> <tt class="py-op">:</tt> <tt class="py-name">sid</tt><tt class="py-op">,</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">                 <tt class="py-op">}</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-96', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="esapi.core.ESAPI.log
esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.log" class="py-name" href="#" onclick="return doclink('link-97', 'log', 'link-56');">log</a></tt><tt class="py-op">(</tt><tt class="py-name">level</tt><tt class="py-op">,</tt> <tt class="py-name">clean</tt><tt class="py-op">,</tt> <tt class="py-name">extra</tt><tt class="py-op">=</tt><tt class="py-name">extra</tt><tt class="py-op">)</tt>  </tt>
</div><a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">                         </tt>
<a name="PythonLogFactory.PythonLogger.is_debug_enabled"></a><div id="PythonLogFactory.PythonLogger.is_debug_enabled-def"><a name="L210"></a><tt class="py-lineno">210</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.is_debug_enabled-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.is_debug_enabled');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#is_debug_enabled">is_debug_enabled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.is_debug_enabled-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.is_debug_enabled-expanded"><a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-98', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt id="link-99" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-99', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="esapi.logger.Logger.DEBUG" class="py-name" href="#" onclick="return doclink('link-100', 'DEBUG', 'link-44');">DEBUG</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.PythonLogger.is_error_enabled"></a><div id="PythonLogFactory.PythonLogger.is_error_enabled-def"><a name="L213"></a><tt class="py-lineno">213</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.is_error_enabled-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.is_error_enabled');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#is_error_enabled">is_error_enabled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.is_error_enabled-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.is_error_enabled-expanded"><a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-101" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-101', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt id="link-102" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-102', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="esapi.logger.Logger.ERROR" class="py-name" href="#" onclick="return doclink('link-103', 'ERROR', 'link-38');">ERROR</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.PythonLogger.is_fatal_enabled"></a><div id="PythonLogFactory.PythonLogger.is_fatal_enabled-def"><a name="L216"></a><tt class="py-lineno">216</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.is_fatal_enabled-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.is_fatal_enabled');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#is_fatal_enabled">is_fatal_enabled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.is_fatal_enabled-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.is_fatal_enabled-expanded"><a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-104', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt id="link-105" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-105', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="esapi.logger.Logger.FATAL" class="py-name" href="#" onclick="return doclink('link-106', 'FATAL', 'link-36');">FATAL</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.PythonLogger.is_info_enabled"></a><div id="PythonLogFactory.PythonLogger.is_info_enabled-def"><a name="L219"></a><tt class="py-lineno">219</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.is_info_enabled-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.is_info_enabled');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#is_info_enabled">is_info_enabled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.is_info_enabled-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.is_info_enabled-expanded"><a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-107', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt id="link-108" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-108', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-109" class="py-name"><a title="esapi.logger.Logger.INFO" class="py-name" href="#" onclick="return doclink('link-109', 'INFO', 'link-42');">INFO</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.PythonLogger.is_trace_enabled"></a><div id="PythonLogFactory.PythonLogger.is_trace_enabled-def"><a name="L222"></a><tt class="py-lineno">222</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.is_trace_enabled-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.is_trace_enabled');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#is_trace_enabled">is_trace_enabled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.is_trace_enabled-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.is_trace_enabled-expanded"><a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-110', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt id="link-111" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-111', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="esapi.logger.Logger.TRACE" class="py-name" href="#" onclick="return doclink('link-112', 'TRACE', 'link-46');">TRACE</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">         </tt>
<a name="PythonLogFactory.PythonLogger.is_warning_enabled"></a><div id="PythonLogFactory.PythonLogger.is_warning_enabled-def"><a name="L225"></a><tt class="py-lineno">225</tt> <a class="py-toggle" href="#" id="PythonLogFactory.PythonLogger.is_warning_enabled-toggle" onclick="return toggle('PythonLogFactory.PythonLogger.is_warning_enabled');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger-class.html#is_warning_enabled">is_warning_enabled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PythonLogFactory.PythonLogger.is_warning_enabled-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="PythonLogFactory.PythonLogger.is_warning_enabled-expanded"><a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="esapi.reference.python_log_factory.PythonLogFactory.PythonLogger.pyLogger" class="py-name" href="#" onclick="return doclink('link-113', 'pyLogger', 'link-24');">pyLogger</a></tt><tt class="py-op">.</tt><tt class="py-name">isEnabledFor</tt><tt class="py-op">(</tt><tt id="link-114" class="py-name"><a title="esapi.logger.Logger" class="py-name" href="#" onclick="return doclink('link-114', 'Logger', 'link-8');">Logger</a></tt><tt class="py-op">.</tt><tt id="link-115" class="py-name"><a title="esapi.logger.Logger.WARNING" class="py-name" href="#" onclick="return doclink('link-115', 'WARNING', 'link-40');">WARNING</a></tt><tt class="py-op">)</tt> </tt>
</div></div></div><a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="esapi-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Nov  8 16:04:24 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
